from django.db.models import CharField, IntegerField, ForeignKey
from django.db import models


class StockList(models.Model):
    id = models.IntegerField(default=0,primary_key=True)
    symbol = models.TextField(max_length=20, null=False)
    trading_day = models.TextField(blank=True, null=False)
    grid_time = models.TextField(blank=True, null=False)
    # account_id = models.IntegerField(blank=True, null=False)
    pnl_today = models.TextField(blank=True,null=False)
    pnl_trade = models.TextField(blank=True,null=False)
    pnl_hold = models.TextField(blank=True,null=False)
    class Meta:
        db_table = "stock_list2"
